#include <stdio.h>
#include <unistd.h>

int main()
{  
    pid_t id =fork();
    if(id<0)    return 1;
    else if(id==0)
    {
        printf("father process\n");
        sleep(1);
    }
    else  
    {
        printf("child process\n");
        sleep(2);
    }
    return 0;;
}
